package cn.itcast.cd.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 采购单
 * @author ssvfhppl
 */
public class PurchaseBill{
	
	private Long id;
	
	private String sn;
	
	//供应商
	private Supplier supplier;
	
	//采购员
	private User buyer;

	//单据发生时间
	private Date vdate;
	
	private Date inputTime = new Date();
	private User inputUser;
	
	private String remark;
	
	//是否已经审核
	private Boolean auditing;
	
	//审核人员
	private User auditor;
	
	//审核时间
	private Date auditTime;
	
	private BigDecimal amount=new BigDecimal(0);
	
	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	//订单的明细项
	private List<PurchaseBillItem> items = new java.util.ArrayList<PurchaseBillItem>();
	
	/**
	 * 0 初始录入  1为已审核。
	 */
	private Integer status;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Supplier getSupplier() {
		return supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

	public User getBuyer() {
		return buyer;
	}

	public void setBuyer(User buyer) {
		this.buyer = buyer;
	}

	public Date getVdate() {
		return vdate;
	}

	public void setVdate(Date vdate) {
		this.vdate = vdate;
	}

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}

	public User getInputUser() {
		return inputUser;
	}

	public void setInputUser(User inputUser) {
		this.inputUser = inputUser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public Boolean getAuditing() {
		return auditing;
	}

	public void setAuditing(Boolean auditing) {
		this.auditing = auditing;
	}

	public User getAuditor() {
		return auditor;
	}

	public void setAuditor(User auditor) {
		this.auditor = auditor;
	}

	public Date getAuditTime() {
		return auditTime;
	}

	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}

	public List<PurchaseBillItem> getItems() {
		return items;
	}

	public void setItems(List<PurchaseBillItem> items) {
		this.items = items;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
